<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : estimation_opnList.jsp
    Description : 옵션
    author SJYoon
    since 2012. 6. 25.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 25.     SJYoon     최초 생성
--%>
            
            <div class="half-section-cont">
            
            <c:set var="t" scope="page" value="1"></c:set>
            <c:set var="size" scope="page" value="${fn:length(opnList) }" />
            

            <c:if test="${size != 0 }" >
            <c:forEach var="j" begin="0" end="${ size }" >            
            <c:if test="${t % 2 == 1 }">
            <div class="section-loop"></c:if>
            
                <div class="cell">
                    <ul>
                    <c:if test="${not empty opnList[j].optnCd }">
                        <li>
                            <label>
                                <input type="radio" class="check" name="optn" onclick="selectOpt('<c:out value="${opnList[j].optnCd}"/>','<c:out value="${opnList[j].optnItemNm}"/>','<c:out value="${opnList[j].optionPrice1}"/>');" />
                                <em class="op-txt"><c:out value="${opnList[j].optnItemNm}"/></em>
                            </label>
                            <p class="price"><span id="optnPrice_<c:out value="${t}"/>_<c:out value="${j}"/>"><script>fnNumberFormatPrint(<c:out value="${opnList[j].optionPrice1}"/>, '#optnPrice_<c:out value="${t}"/>_<c:out value="${j}"/>');</script></span>원</p>
                        </li>
                    </c:if>
                    </ul>
                </div>        
                
            <c:if test="${t % 2 == 0 || j == size }">
            </div>
            </c:if>
            <c:set var="t" scope="page" value="${ t+1 }"></c:set>
            </c:forEach>
            </c:if>
                                                    
            </div>